package com.yundasys.lab08jvm.heapoom;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

/**
 * @PACKAGE_NAME: com.yundasys.lab08jvm.heapoom
 * @NAME: HeapOOMTest
 * @USER: jiangta
 * @DATE: 2021/2/7
 * @TIME: 8:07 上午
 * @PROJECT_NAME: springboot-labs
 *
 * -Xms20m -Xmx20m -XX:+HeapDumpOnOutOfMemoryError
 */
public class HeapOOMTest {

    private List<String> oomList = new ArrayList<>();

    public static void main(String[] args) {
        HeapOOMTest oomTest = new HeapOOMTest();
        while (true) {
            oomTest.oomList.add(UUID.randomUUID().toString());
        }

    }
}
